package com.ruoyi.web.task;

import com.ruoyi.business.rule.service.JbOpportunityRulesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 商机规则定时任务
 */
@Component("opportunityRuleTask")
public class OpportunityRuleTask
{
    @Autowired
    private JbOpportunityRulesService jbOpportunityRulesService;

    /**
     * 线上公共商机，执行自动设置的规则
     */
    public void publicRule()
    {
        jbOpportunityRulesService.publicRule();
    }

    /**
     * 线上部门公共商机，执行自动设置的规则
     */
    public void deptRule()
    {
        jbOpportunityRulesService.deptRule();
    }

    /**
     * 线上小组公共商机，执行自动设置的规则
     */
    public void teamRule()
    {
        jbOpportunityRulesService.teamRule();
    }

    /**
     * 线下公共商机，执行自动设置的规则
     */
    public void offlinePublicRule()
    {
        jbOpportunityRulesService.offlinePublicRule();
    }

}
